﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using Microsoft.AspNet.Identity;

namespace Blog.Models
{
    public class UserModel
    {
        [Required]
        public int UserId { get; set; }

        [Required]
        [DataType(DataType.Text)]
        [StringLength(maximumLength: 200, MinimumLength = 5)]
        [Display(Name = "Namn")]
        public string Name { get; set; }

        [DataType(DataType.Text)]
        [StringLength(maximumLength: 200, MinimumLength = 4)]
        [Display(Name = "Land")]
        public string Country { get; set; }

        [DataType(DataType.MultilineText)]
        [StringLength(4000)]
        [Display(Name = "Bloggar om")]
        public string BlogsAbout { get; set; }

        [DataType(DataType.MultilineText)]
        [StringLength(4000)]
        [Display(Name = "Presentation")]
        public string Presentation { get; set; }

        [Required]
        [DataType(DataType.Password)]
        [StringLength(maximumLength: 20, MinimumLength = 3)]
        [Display(Name="Lösenord")]
        public string Password { get; set; }

        [Required]
        [DataType(DataType.Text)]
        [StringLength(maximumLength: 20, MinimumLength = 3)]
        [Display(Name = "Användarnamn")]
        public string UserName { get; set; }

        [Display(Name = "Profilbild")]
        [DataType(DataType.Upload)]
        public string UserImage { get; set; }
    }
}